import SubApplicationDetailComp from "containers/setting/sub-application/sub-application-management/sub-application-info";
import SubApplicationIndexPrivatization from "containers/setting/sub-application-privatization/sub-application-privatization-index";
import EditHomePageCard from "containers/setting/sub-application/module-display-setting/module-display-index";
import EditSubApplicationRecordDetail from "containers/setting/sub-application-privatization/edit-sub-application/edit-sub-application-record-detail";
import EditSubApplicationPrivatization from "containers/setting/sub-application-privatization/edit-sub-application/edit-sub-application-index";

//子应用管理--私有化
const SubApplicationPrivatizationMenu = {
  key: 'sub-application-privatization',
  url: '/main/setting/sub-application-privatization',
  components: SubApplicationIndexPrivatization,
  parent: 'setting',
  tenant: false,
  company: false,
  children:{
    //新建子应用
    newSubApplicationDetail: {
      key: 'new-sub-application-privatization',
      url: '/main/setting/sub-application-privatization/new-sub-application-privatization',
      components: SubApplicationDetailComp,
      parent: 'sub-application-privatization'
    },
    //子应用详情编辑页
    personGroupDetail: {
      key: 'sub-application-detail-privatization',
      url: '/main/setting/sub-application-privatization/sub-application-detail-privatization/:id',
      components: SubApplicationDetailComp,
      parent: 'sub-application-privatization'
    },
    //编辑从应用列表中选择的应用
    EditSubApplication: {
      key: 'edit-sub-application-privatization',
      url: '/main/setting/sub-application-privatization/edit-sub-application-privatization/:code',
      components: EditSubApplicationPrivatization,
      parent: 'sub-application-privatization'
    },
    //版本详情
    EditSubApplicationVersionDetail: {
      key: 'sub-application-version-detail',
      url: '/main/setting/sub-application-privatization/edit-sub-application-privatization/:code/sub-application-version-detail/:id',
      components: EditSubApplicationRecordDetail,
      parent: 'edit-sub-application'
    },
    //编辑首页卡片应用
    EditHomePageCard: {
      key: 'edit-home-page-card-privatization',
      url: '/main/setting/sub-application-privatization/edit-home-page-card-privatization',
      components: EditHomePageCard,
      parent: 'sub-application-privatization'
    }
  }
};
export default SubApplicationPrivatizationMenu;
